package com.bruce.spring.demo.config;

import com.bruce.spring.demo.entity.ApplicationDemoUser;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author luotuan
 * @Description
 * @create 2021-04-27 14:09
 **/
@Configuration
public class HelloConfiguration {
    @Bean(name = "helloUser")
    public ApplicationDemoUser demoUser() {
        return new ApplicationDemoUser().setName("bruce").setAge(28);
    }
    @Bean
    public HelloBeanPostProcessor helloBeanPostProcessor(){
        return new HelloBeanPostProcessor();
    }
}
